package springboot.mybatisplus.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
@ApiModel(value="User",description="用户实体类")
@Data
@TableName("user")
public class User implements Serializable {
    @ApiModelProperty(value = "用户编号")
    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String nickname;

    private String userToken;

    private Date createTime;

    private Integer valid;

 }